<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>張學友</title>

    <style>
        *{
            padding: 0;
            margin: 0;
        }

        body{
            background: url(../Source/zhangXueYouBG.jpg) no-repeat;
            background-size: cover;
            /* perspective: 200px; */
        }

        li{
            list-style: none;
        }

        ul{
            width: 200px;
            height: 200px;
            /* border: 1px solid #fff; */
            position: absolute;
            bottom: 100px;
            left: 50%;
            margin-left: -100px;
            transform-style: preserve-3d;
            /* transform: rotateX(-20deg) rotateY(0deg) ; */
            animation: run 6s linear 0s infinite normal;
        }
          /*
                注意点:
                1.动画中如果有和默认样式中同名的属性, 会覆盖默认样式中同名的属性
                2.在编写动画的时候, 固定不变的值写在前面, 需要变化的值写在后面
                */
        @keyframes run{
            from{
                transform: rotateX(-10deg) rotateY(0deg);
            }
            to{
                transform: rotateX(-10deg) rotateY(360deg);
            }
        }

        ul li{
            width: 100%;
            height: 100%;
            position: absolute;
            left: 0;
            top: 0;
            border: 4px solid skyblue;
        }

        ul li img{
            width: 100%;
            height: 100%;
        }

        ul li:nth-child(1){
            background-color:; 
            transform: rotateY(60deg) translateZ(200px);
        }
        ul li:nth-child(2){
            background-color:black;
            transform: rotateY(120deg) translateZ(200px);
        }
        ul li:nth-child(3){
            background-color:black;
            transform: rotateY(180deg) translateZ(200px);
        }
        ul li:nth-child(4){
            background-color:black;
            transform: rotateY(240deg) translateZ(200px);
        }
        ul li:nth-child(5){
            background-color:black;
            transform: rotateY(300deg) translateZ(200px);
        }
        ul li:nth-child(6){
            background-color:black;
            transform: rotateY(360deg) translateZ(200px);
        }

        ul:hover{
            animation-play-state: paused;
        }

        ul:hover li img{
            opacity: 0.3;
        }

        ul li:hover img{
            opacity: 1;
        }

        .heart{
            position: absolute;
            left: 0;
            bottom: 0;
            animation: heartMove 6s linear 0s infinite normal;
        }

        @keyframes heartMove{
            0%{
                left: 0;
                bottom: 0;
            }

            20%{
                left: 20%;
                bottom: 20%;
                opacity: 0;
            }
        }
    </style>
</head>
<body>
    <ul>
        <li><img src="../Source/zuy1.png" alt=""></li>
        <li><img src="../Source/zuy2.jpg" alt=""></li>
        <li><img src="../Source/zuy3.jpg" alt=""></li>
        <li><img src="../Source/zuy4.gif" alt=""></li>
        <li><img src="../Source/zuy5.jpg" alt=""></li>
        <li><img src="../Source/zuy6.jpg" alt=""></li>
    </ul>

    <img src="../Source/张学友/xin.png" class="heart">
</body>
</html>